﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Anay.TaskScheduling.JobConfig
{
    public class Ep_task_config : IJobConfig
    {
        [Key]
        public string Id { get; set; }

        /// <summary>
        /// job名称
        /// </summary>
        public string JobName { get; set; }

        /// <summary>
        /// 定时类型  tigger-秒  runner-crob表达式 
        /// </summary>
        public string TimeType { get; set; }

        /// <summary>
        /// 定时时间
        /// </summary>
        public string TimeExpression { get; set; }

        /// <summary>
        /// 是否启用 0-启用 1-不启用
        /// </summary>
        public string IsEnabled { get; set; }

        /// <summary>
        /// 执行地址IP
        /// </summary>

        public string IP { get; set; }

        /// <summary>
        /// 任务配置表主键
        /// </summary>
        public string TemplateId { get; set; }

        /// <summary>
        /// job真正执行的url地址
        /// </summary>
        public string JobUrl { get; set; }

        /// <summary>
        /// 访问url的方法 Get/Post
        /// </summary>
        public string Metthod { get; set; }


        /// <summary>
        /// 访问urlPost传递的参数
        /// </summary>
        public string JsonString { get; set; }


        /// <summary>
        /// 最后运行时间
        /// </summary>
        public DateTime? LastRunTime { get; set; }

        /// <summary>
        /// 创建人员
        /// </summary>
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 更新人员
        /// </summary>
        public string UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }

        /// <summary>
        /// 0-是 1-否
        /// </summary>
        public string IsDelete { get; set; }
    }
}
